package org.example.apiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * 签名工具
 * @date 2023/6/13
 * @apiNote
 */
public class SignUtils {
    public static String getSign(String body, String secretKey){
        Digester digester = new Digester(DigestAlgorithm.SHA256);
        String content=body+"."+secretKey;
        String digestHex = digester.digestHex(content);
        return digestHex;
    }
}
